import requests from "./requests.js";

export function getUserDetail() {
    return requests({
        url: "/setting/getPersonSimpleInfo",
        method: 'get'
    })
}

export function getArticleAssess(data) {
    return requests({
        url: '/setting/getArticleAssess?articleId=' + data,
        method: 'get'
    })
}

export function addComment(data) {
    return requests({
        url: '/setting/addComment',
        method: 'post',
        data
    })
}

export function addBrowseNum(articleId, type) {
    return requests({
        url: '/setting/addBrowseNum?articleId=' + articleId + "&type=" + type,
        method: 'get'
    })
}

export function getPersonInfo() {
    return requests({
        url: '/setting/getPersonInfo',
        method: 'get'
    })
}